<admintpl file="header"/>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:U('Member/index')}">会员列表</a></li>
        <li class="active"><a href="{:U('Member/detail')}">会员详情</a></li>
    </ul>
    <form action="#" method="post" class="form-horizontal js-ajax-forms" enctype="multipart/form-data">
        <div class="row-fluid">
            <div class="span8">
                <table class="table table-bordered">
                    <tr>
                        <th width="120">手机</th>
                        <td>
                            <label>{$member['telephone']}</label>
                        </td>
                    </tr>
                    <tr>
                        <th>姓名</th>
                        <td>
                            <label>{$member['member_name_chn']}</label>
                        </td>
                    </tr>
                    <tr>
                        <th>性别</th>
                        <td>
                            <label> {$sex_array[$member['sex']]}</label>
                        </td>
                    </tr>
                    <tr>
                        <th>住址</th>
                        <td>
                            <label>{$member['address']}</label>
                        </td>
                    </tr>
                    <tr>
                        <th>邮编</th>
                        <td>
                            <label>{$member['postal_code']}</label>
                        </td>
                    </tr>
                    <tr>
                        <th>邮箱</th>
                        <td>
                            <label>{$member['email']}</label>
                        </td>
                    </tr>
                    <tr>
                        <th>证件</th>
                        <td>
                            <label>{$member['id_no']} ({$certificate_type_array[$member['certificate_type']]})</label>
                        </td>
                    </tr>
                    <tr>
                        <th>会员编号</th>
                        <td>
                            <label>{$member['member_code']}</label>
                        </td>
                    </tr>

                    <tr>
                        <th>积分</th>
                        <td>
                            <label>{$member['integral']}</label>
                        </td>
                    </tr>

                </table>
            </div>

            <div class="span4">
                <table class="table table-bordered">
                    <tr>
                        <th colspan="2">头像</th>

                    </tr>
                    <tr>

                        <td colspan="2">
                            <div style="text-align: left;">

                                    <if condition="strstr($member['head_img'], 'http')">
                                        <img src="{$member['head_img']}" id="thumb-preview" width="135"
                                             style="cursor: hand"/>
                                        <else/>
                                        <img src="{:sp_get_image_preview_url($member['head_img'])}" id="thumb-preview"
                                             width="135" style="cursor: hand"/>
                                    </if>


                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th>昵称</th>
                        <td>
                            <label>{$member['nickname']}</label>
                        </td>
                    </tr>
                    <tr>
                        <th>微信OPENID</th>
                        <td>
                            <label>{$member['wx_openid']}</label>
                        </td>
                    </tr>
                    <tr>
                        <th>注册时间</th>
                        <td>
                            <label>{$member['register_date']}</label>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="form-actions">
            <a class="btn" href="{:U('Member/index')}">返回</a>
        </div>
    </form>
</div>
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
</body>
</html>